package dk.kapetanovic.jaft.exception;

public class InconsistentStateException extends Exception {

	private Exception cause;

	public InconsistentStateException(Exception cause) {
		super(cause);
		this.cause = cause;
	}
	
	public InconsistentStateException(String msg) {
		this(new Exception(msg));
	}
	
	@Override
	public String toString() {
		return "[InconsistentStateException caused by: " + cause + "]";
	}
}
